from django.db import models


# Create your models here.
class News(models.Model):
    title = models.CharField(max_length=100, verbose_name="标题")
    description = models.TextField(verbose_name='内容描述')
    img = models.CharField(max_length=100, verbose_name='图片')
    is_delete = models.BooleanField(default=False, verbose_name='是否删除')
    create_time = models.DateTimeField(auto_now_add=True, verbose_name='创建时间')

    def __str__(self):
        return self.title

    class Meta:
        db_table = 'p3_d4_news'
